Remove the notion of "primary" from Context
authorAlex Crichton <alex@alexcrichton.com>
Mon, 6 Oct 2014 18:27:16 +0000 (11:27 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 6 Oct 2014 18:27:16 +0000 (11:27 -0700)
commitec1091e9ee44b2e676a8aa774b03226aa1ffaf78
treea92ad2fa24543f65bcb1a5a4f4e707a32367ff0d
parent0da5da13d656f89b0e5b2167e3d105a2722936dd
Remove the notion of "primary" from Context

Now that we have selective testing, this no longer makes any sense and all
queries to the path layout need to be based on the package being queried for.
This removes the primary flag from the Context, and requires that the `layout`
method have a local Package available

cc servo/servo#3580
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/fingerprint.rs
src/cargo/ops/cargo_rustc/mod.rs
tests/test_cargo_test.rs